package com.meizu.boweitest.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

/**
 * Parameters in Setting Activity
 * 
 */
public final class Settings {

	public static final String KEY_SENDER = "sender";
	public static final String KEY_PASSWORD = "password";
	public static final String KEY_RECIPIENTS = "recipients";
	public static final String KEY_SMTP = "smtp";
	public static final String KEY_ISFLOAT = "isfloat";
	public static final String KEY_INTERVAL = "interval";
	public static final String KEY_ROOT = "root";
	public static final String KEY_AUTO_STOP = "autoStop";
	public static final String KEY_WACK_LOCK = "wakeLock";
	public static final String Performance_RESULT_DIR = "/sdcard/Performancetest/";
	private static com.meizu.boweitest.utils.WakeLockHelper wakeLockHelper;
	
	public static SharedPreferences getDefaultSharedPreferences(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context);
	}
	
	public static com.meizu.boweitest.utils.WakeLockHelper getDefaultWakeLock(Context context) {
		if (wakeLockHelper == null) {
			wakeLockHelper = new com.meizu.boweitest.utils.WakeLockHelper(context);
		}
		return wakeLockHelper;
	}

}
